package com.xxgc.zde.api;

import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
import com.xxgc.zde.api.response.WechatLoginResponse ;
import org.springframework.stereotype.Service;

/**
 * @author: Mei
 * @date: 2023/8/17 21:02
 * @Description: 微信接口
 */
@Service
public interface WechatApi {

// WechatApi.java
@Get("https://api.weixin.qq.com/sns/jscode2session")
WechatLoginResponse getWechat(
    @Query("appid") String appid,
    @Query("secret") String secret,    // 修正此处参数名
    @Query("js_code") String jsCode,  // 建议变量名与参数名一致
    @Query("grant_type") String grantType
);

}
